I = eval(input('请输入利润I'))
prize = 0
match I:
    case _ if I <= 100000:
        prize = I * 0.1
    case _ if 100000 < I <= 200000:
        prize = 100000 * 0.1 + (I - 100000) * 0.075
    case _ if 200000 < I <= 400000:
        prize = 100000 * 0.1 + (200000 - 100000) * 0.075 + (I - 200000) * 0.05
    case _ if 400000 < I <= 600000:
        prize = 100000 * 0.1 + (200000 - 100000) * 0.075 + (400000 - 200000) * 0.05 + (I - 400000) * 0.03
    case _ if 600000 < I <= 1000000:
        prize = 100000 * 0.1 + (200000 - 100000) * 0.075 + (400000 - 200000) * 0.05 + (600000 - 400000) * 0.03 + (I - 600000) * 0.015
    case _ if I > 1000000:
        prize = 100000 * 0.1 + (200000 - 100000) * 0.075 + (400000 - 200000) * 0.05 + (600000 - 400000) * 0.03 + (1000000 - 600000) * 0.015 + (I - 1000000) * 0.01
print('应发奖金为', prize)

